<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
li{
   list-style: none
}
</style>
</head>



<body>
	<div style="background-color: #778899; padding: 11.5px;position: relative;right: -253px;width: 1604px;">
		<h2>报修列表</h2>
	</div>
	<div style="background-color: #F0F8FF;position: relative;right: -253px;width: 1627px;">
		<div style="padding: 60px;">
          <form action="Repairs">
			<ul style="font-size: 30px; background-color: #ADD8E6;">
			   <c:forEach var="list" items="${RepairsList}" varStatus="status">
				<li <c:if test="${status.index%2==1}"> style="background-color:rgb(219,241,212);"</c:if>>
				<span><a href="ReplyRepair?rid=${list.id}">${list.content }</span><span style="float: right;"><fmt:formatDate value="${list.time}"
						pattern="yyyy-MM-dd"></fmt:formatDate></span></a></li>
			   </c:forEach>
			</ul>
			<br /> <br /> 
			<!-- <input type="button" value="第一页"> <input
				type="button" value="上一页"> <input type="button" value="下一页">
			<input type="button" value="最后一页">-->
			
		    <a href="?page=1">[首页]</a>
			
			<c:if test="${totalPages>0}">
						<c:if test="${page>1}">
							<a href="?page=${page-1}">[上一页]</a>
						</c:if>
						<c:if test="${page<=1}">
							<a>[上一页]</a>
						</c:if>
						<c:if test="${page<totalPages}">
							<a href="?page=${page+1}">[下一页]</a>
						</c:if>
						<c:if test="${page>=totalPages}">
							<a>[下一页]</a>
						</c:if>
		                                 
	        </c:if>
	        <a href="?page=${totalPages}">[尾页]</a>
	              
	        </form>
	        <br/>
	         <br/>
	          <br/>
	           <br/>
	         第 ${page} 页，共 ${totalPages} 页
		</div>
	</div>
</body>
</html>